/**
 *
 * @author lty
 */
public class UnionPayAdapter implements Payment{
    private UnionPay unionPay;

    public UnionPayAdapter(UnionPay unionPay) {
        this.unionPay = unionPay;
    }

    @Override
    public void pay(double amount) {
        // 适配方法
        unionPay.makePayment(amount);
    }
}
